package com.school.information.enums.result;

import com.school.information.core.IResultStatus;
import lombok.Getter;

@Getter
public enum ResultStatusEnum implements IResultStatus {
    SUCCESS(200, null),
    ERROR_ARG(103, "参数错误"),
    ERROR_SERVICE(500, "服务器异常，请稍后重试..."),
    VALIDATE_ERROR(400, "数据校验错误"),
    UNAUTHORIZED(401, "认证失败"),
    FORBIDDEN(403, "无权限访问");

    private Integer code;
    private String msg;

    ResultStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
